import java.util.Scanner;

public class SixthQuestion {
    public static void main(String[] args) {
        System.out.println("猜拳");
        Scanner input = new  Scanner(System.in);

        while (true){
            System.out.println("请输入：");
             int num = input.nextInt();
             if (num==0){
                 System.out.println("石头");
             }
             if (num==1){
                 System.out.println("剪刀");
             }
             if (num==2){
                 System.out.println("布");
             }
            System.out.println("是否继续（y/n）");
             String num1=input.next();
             if ("n".equalsIgnoreCase(num1)){
                 break;
             }
        }
    }
}
